<form method="post" name="frmSearch" action="<?php echo site_url('mastersuppliercontroller');?>">
    <table width="100%" cellpadding="3" cellspacing="0" border="1">
        <tr>
            <td width="120"><strong>No Faktur</strong></td>
            <td width="13" align="center"><strong>:</strong></td>
            <td width="854" colspan="3"><input type="text"  name="nofaktur" id="nofaktur" size="50" />&nbsp;|&nbsp;<input type="submit" name="btnview" value="Search"> &nbsp;|&nbsp; <input type="button" name="btnClose" value="Back" class="btn" onclick="javascript:window.location='<?php echo site_url('menuhomecontroller'); ?>';" />
            </td>
		</tr>
    </table>
</form>

<br />
<br />
<div class="cleaner_h10"></div>
<table border="1" cellpadding="3" cellspacing="0" width="100%" style=" border-collapse: collapse;" class="record" bordercolor="#CCCCCC">
    <tr style="background-color:#FFF; color:#000000;" align="center">
        <td colspan="7" height="25"><strong>LIST PERSEDIAAN BARANG </strong></td>
    </tr>
    <tr style="background-color:#333; color:#FFF;" align="center">
        <td>No Faktur</td>
        <td>Tanggal Faktur</td>
        <td>Total Quantity</td>
        <td>Total Amount</td>
        <td>Status</td>
        <td>Keterangan</td>
        <td><a href="<?php echo site_url(); ?>/persediaancontroller/tambah"><div class="btn-add">Add Faktur</div></a></td>
    </tr>
	<?php if(count($data_array)>0){ ?>
        {data_array}
            <tr class="cellDefault">
                <td>{NoFaktur}</td>
                <td>{DateFaktur}</td>
                <td>{TotalQuantity}</td>
                <td>{TotalAmount}</td>
                <td>{Active}</td>
                <td>{Keterangan}</td>
                <td><a href="<?php echo site_url('persediaancontroller/cetak_faktur');?>/{NoFaktur}"><div class="btn-print">Print Faktur
					</div></a></td>
            </tr>
        {/data_array}
    <?php } else{
            echo "<tr>";
            echo "<td colspan='9' style='text-align:center;color:red;'>No Data To Display</td>";
            echo "</tr>";
    } ?>
    <?php if(!empty($message))?>{message}
</table>